/**
 * Created by raniys on 16/1/28.
 */

var express = require('express');
var router = express.Router();
var auth = require('../server/controllers/auth');


/* GET home page. */
router.get('/', function (req, res) {
    res.render('templates/login.html');
});

router.post('/register', auth.register);
router.post('/login', auth.login);

module.exports = router;
